package com.bestv.search.common.dao;

import com.bestv.search.common.model.KeySubject;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface KeySubjectDao extends GenericDao<KeySubject, Long> {

    public KeySubject getByTypeName(String type, String name);

    public List<KeySubject> getKeySubjects();

    public List<KeySubject> getKeySubjectsPaging(int start, int limit);

    public Map<String, Integer> findKeyFrequent(String[] keys);

    public KeySubject deleteById(Long id);

    public int getKeySubjectCount();

    List<KeySubject> getOnLineKeySubjects(int start, int limit);

    List<KeySubject> getKeySubjectsByUpdateTimeForIndex(Date updateTimeForIndex);

    int getOnLineKeySubjectsCount();
}
